#include "Square.h"

Square::Square(double side):m_rectangle(side,side){
}

void Square::setSide(double side){
    m_rectangle.setWidth(side);
    m_rectangle.setHeight(side);
}
double Square::getArea() const{
    return m_rectangle.getArea();
}

double Square::getPerimeter() const{
    return m_rectangle.getPerimeter();
}
